﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucLogin.ascx.cs" Inherits="Manicure.Includes.wucLogin" %>

<script type="text/javascript">
    function fctVerificarCamposLogin() {
        var objLogin = document.getElementById('ctl00_ContentPlaceHolder1_wucLogin_txtLogin');
        var objSenha = document.getElementById('ctl00_ContentPlaceHolder1_wucLogin_txtSenha');

        if (objLogin.value == "") {
            alert('Por favor, preencha o campo Login.');
            objLogin.focus();
            return false;
        }
        else if (objSenha.value == "") {
            alert('Por favor, preencha o campo Senha.');
            objSenha.focus();
            return false;
        }

        return true;

    }
</script>


<table style="margin-left: 300px">
    <tr>
        <td style="height: 196px" runat="server" id="tdDadosLogin">
            <table style="width: 547px; height: 196px; border-collapse: collapse; border-spacing: 0px" border="0">
                <tr>
                    <td style="height: 90px">
                        <table border="0" style="text-align: center; border-collapse: collapse; border-spacing: 0px; margin-left: 100px">
                            <tr>
                                <td class="txtLogin_">
                                    <asp:Label ID="lblLogin" runat="server" Text="Login:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLogin" runat="server" CssClass="txteditLogin" Width="100px"></asp:TextBox>
                                </td>
                                <td style="width: 15px">&nbsp;
                                </td>
                                <td class="txtLogin_">
                                    <asp:Label ID="lblSenha" runat="server" Text="Senha:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSenha" runat="server" CssClass="txteditLogin" Width="100px" TextMode="Password"></asp:TextBox>
                                </td>
                                <td style="width: 15px">&nbsp;
                                </td>
                                <td>
                                    <div onclick="return fctVerificarCamposLogin()">
                                        <asp:ImageButton ID="btOK" runat="server" SkinID="imbEntrarLogin" OnClick="btOK_Click" />
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

